﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XinLife.Model.Busines
{
    /// <summary>
    /// 黑名单表
    /// </summary>
    [SugarTable("tb_blacklist")]
    public class Blacklist : BaseModel
    {
        /// <summary>
        /// ip
        /// </summary>
        public string cIp { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public string cUserId { get; set; }
        /// <summary>
        /// 封禁时间
        /// </summary>
        public string cTerm { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool cState { get; set; } = true;
        /// <summary>
        /// 封禁开始时间
        /// </summary>
        public DateTime cForbiddenStartTime { get; set; }
        public DateTime cForbiddenEndTime { get; set; }
        public string cDescription { get; set; }


        [Navigate(NavigateType.OneToOne, nameof(cUserId))]
        public User user { get; set; }
    }
}
